<?php
class PageL10NForm extends Zend_Form_SubForm
{
	public function __construct($options = null)
	{
		parent::__construct($options);
		$t = Zend_Registry::get('Zend_Translate');

		$this->setname('pageL10N');

		$name = new Zend_Form_Element_Text('name');
		$name->setLabel($t->_('name'))
		->addFilter('StripTags')
		->addFilter('StringTrim');

		$id = new Zend_Form_Element_Hidden('id');
		$languageId = new Zend_Form_Element_Hidden('languageId');

		$this->addElements(array(
			$name, $id, $languageId
		));
	}
}